package POJO;

public class DevList {

	private String deviceSeq;// 设备序列号
	private String devAddr;// 设备地址
	private String devShortAddr;// 设备通信通知地址

	public String getDeviceSeq() {
		return deviceSeq;
	}

	public void setDeviceSeq(String deviceSeq) {
		this.deviceSeq = deviceSeq;
	}

	public String getDevAddr() {
		return devAddr;
	}

	public void setDevAddr(String devAddr) {
		this.devAddr = devAddr;
	}

	public String getDevShortAddr() {
		return devShortAddr;
	}

	public void setDevShortAddr(String devShortAddr) {
		this.devShortAddr = devShortAddr;
	}

	/**
	 * 补齐序列号
	 * 
	 * @param terminalID
	 * @return
	 */
	public static String toDeviceSeq(int terminalID) {
		String str = String.format("%10d", terminalID);
		return str.replace(' ', '0');
	}

}
